package app.netant.bt.btcats;

import cn.lily.com.enviroment.Enviroment;
import app.netant.bt.MargnetDetail;
import app.netant.bt.MargnetPage;
import app.netant.bt.MargnetRoot;
import app.netant.bt.btrabbit.BtRabbitRoot;
/**
 * 关键字：18禁ゲーム | 同人ゲーム | 一般ゲーム
 * https://btcat.xyz/search/%E3%82%B2%E3%83%BC%E3%83%A0cg/default-245.html
 * @author JiaJ
 *
 */
public class BtCatRoot extends MargnetRoot {

	@Override
	public String getUrl(int idx) {
		return "https://btcat.xyz/search/%E3%82%B2%E3%83%BC%E3%83%A0cg/default-" + idx +".html";
	}

	@Override
	public MargnetPage buildPage(String url) {
		MargnetPage page = new BtCatPage(url);
		return page;
	}

	@Override
	public MargnetDetail buildDetail(String url) {
		MargnetDetail detail = new BtCatDetail(url);
		return detail;
	}
	
	public static void main(String[] args) {
		Enviroment.createEnv();
		Enviroment.getEnv().getLogBean().beginLog();
		BtCatRoot root = new BtCatRoot();
		
		//42-327
		//root.analyse(55,245);
		root.error();
	}

}
